package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_org;

import cn.com.api.mapper.ApiU_orgMapper;

import cn.com.api.service.ApiU_orgService;

/**
 * 
 **/
@Service
public class U_orgServiceImplBase {
	@Autowired
	private ApiU_orgMapper apiU_orgMapper;
    
    // 根据id获取
	public ApiU_org findU_orgById(Integer id){
		ApiU_org u_org = apiU_orgMapper.findU_orgById( id );
		return u_org;
	}
    
    //查看数据集
	public List<ApiU_org> findU_orgs(){
        List<ApiU_org> u_orgs = apiU_orgMapper.findU_orgs();
		return u_orgs;
    }
    
	// 添加
	public int insertU_org(ApiU_org u_org){
		int ret_I= apiU_orgMapper.insertU_org(u_org);
		return ret_I;
	}

	// 修改
	public int updateU_org(ApiU_org u_org){
		int ret_I= apiU_orgMapper.updateU_org(u_org);
		return ret_I;
	}
	
    // 删除
	public int deleteU_org(Integer id){
		int ret_I= apiU_orgMapper.deleteU_org( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


